import { createApp } from "vue";
import { createRouter, createWebHistory } from "vue-router";
// import "./style.css";
import App from "./App.vue";
import Home from "./views/Home.vue";
import Login from "./views/Login.vue";
import Create from "./views/Create.vue";
import { createStore } from "vuex";

const routerHistory = createWebHistory();
const router = createRouter({
  history: routerHistory,
  routes: [
    {
      path: "/",
      name: "home",
      component: Home
    },
    {
      path: "/login",
      name: "login",
      component: Login
    },
    {
      path: "/create",
      name: "create",
      component: Create
    }
  ]
});

const store = createStore({
  state: {
    count: 0
  }
});
const app = createApp(App);
app.use(router);
app.use(store)
app.mount("#app");
